Tootsville::Infinity-Echo

Function

Infinity-Echo names a function, with lambda list (D USER RECIPIENT/S):

Echoes back the supplied JSON (or ActionScript) object to the client.

Lisp ECHO = JSON echo

Usage

The datum (d) is returned identically, in a return element named literally You said.

This method exists solely for testing purposes.

{ c: "echo"
  d: DATA-TO-ECHO }

Parameters

jso
Any JSON object, the contents of which will be returned to the caller.
u
The user calling (to whom the response is sent)

Example

⇒ { c: "echo", d: { foo: 42 } }

{ from: "echo", status: true, "You said": { foo: 42 } }

Note that the field name is literally You said with a space.

200 OK

The response is echoed back to the user.

Limitations

The echo packet must be less than 1,024 Unicode characters in length or it will be truncated to 1,024 characters. No warning will be issued to the user in the case of truncation.

Changes from 1.2 to 2.0

The 1kc limit was introduced in 2.0.

Known bugs

This feature is not working correctly as of version 0.6.

File

Defined in file src/infinity/legacy-commands.lisp.